package p270jp.pxv.android.viewholder;

import android.view.View;
import p045be.View$OnLongClickListenerC1075h1;
import p165fo.C3114c;
import p184gi.AnalyticsParameter;
import p270jp.pxv.android.R;
import p270jp.pxv.android.event.ShowWorkMenuOnLongClickEvent;
import p270jp.pxv.android.legacy.event.ShowNovelDetailDialogEvent;
import p270jp.pxv.android.legacy.model.PixivNovel;
import p270jp.pxv.android.view.RankingCarouselNovelItemView;
import p270jp.pxv.android.viewholder.NovelItemViewHolder;

/* renamed from: jp.pxv.android.viewholder.NovelRankingCarouselItemViewHolder */
/* loaded from: classes2.dex */
public class NovelRankingCarouselItemViewHolder extends BaseViewHolder {
    private RankingCarouselNovelItemView rankingCarouselNovelItemView;

    public NovelRankingCarouselItemViewHolder(View view) {
        super(view);
        this.rankingCarouselNovelItemView = (RankingCarouselNovelItemView) view.findViewById(R.id.ranking_carousel_novel_item_view);
    }

    /* renamed from: a */
    public static /* synthetic */ void m4414a(PixivNovel pixivNovel, View view) {
        lambda$bind$0(pixivNovel, view);
    }

    /* renamed from: d */
    public static /* synthetic */ boolean m4413d(PixivNovel pixivNovel, View view) {
        return lambda$bind$1(pixivNovel, view);
    }

    public static int getLayoutRes() {
        return R.layout.view_novel_ranking_carousel_item;
    }

    public static /* synthetic */ void lambda$bind$0(PixivNovel pixivNovel, View view) {
        C3114c.m6284b().m6280f(new ShowNovelDetailDialogEvent(pixivNovel));
    }

    public static /* synthetic */ boolean lambda$bind$1(PixivNovel pixivNovel, View view) {
        C3114c.m6284b().m6280f(new ShowWorkMenuOnLongClickEvent(pixivNovel));
        return true;
    }

    @Override // p270jp.pxv.android.viewholder.BaseViewHolder
    public void bind(Object obj) {
        super.bind(obj);
        NovelItemViewHolder.NovelItem novelItem = (NovelItemViewHolder.NovelItem) obj;
        PixivNovel target = novelItem.getTarget();
        this.rankingCarouselNovelItemView.setNovel(target);
        this.rankingCarouselNovelItemView.setAnalyticsParameter(new AnalyticsParameter(novelItem.getScreenName(), null, 0));
        this.rankingCarouselNovelItemView.setOnClickListener(new View$OnClickListenerC4406g(target, 2));
        this.rankingCarouselNovelItemView.setOnLongClickListener(new View$OnLongClickListenerC1075h1(target, 2));
    }
}
